Platform Explorer / Nuxeo Platform 2021.50

Component org.nuxeo.ecm.platform.video.convert.commandline

Requirements

Resolution Order

586
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.video.convert.commandline">

  <require>org.nuxeo.ecm.platform.commandline.executor.service.defaultContrib</require>

  <extension
    target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent"
    point="command">

    <command name="ffmpeg-info" enabled="true">
      <commandLine>ffprobe</commandLine>
      <parameterString> #{inFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command name="ffmpeg-screenshot" enabled="true">
      <commandLine>ffmpeg</commandLine>
      <!-- It's important to put the -ss option before the -i option for
        faster (though less accurate) seek / skip to position in the input file -->
      <parameterString> -y -ss #{position} -i #{inFilePath} -frames:v 1 -f image2 #{outFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command name="ffmpeg-screenshot-resize" enabled="true">
      <commandLine>ffmpeg</commandLine>
      <!-- It's important to put the -ss option before the -i option for faster
        (though less accurate) seek / skip to position in the input file.

        The -frames:v 1 option tell to take only one screenshot. -->
      <parameterString> -y -ss #{position} -i #{inFilePath} -frames:v 1 -f image2 -vf scale=#{width}:#{height} #{outFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command name="ffmpeg-towebm" enabled="true">
      <commandLine>ffmpeg</commandLine>
      <parameterString> -i #{inFilePath} -s #{width}x#{height} -acodec libvorbis -v 0 #{outFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command name="ffmpeg-tomp4" enabled="true">
      <commandLine>ffmpeg</commandLine>
      <parameterString> -i #{inFilePath} -s #{width}x#{height} -acodec aac -strict -2 -pix_fmt yuv420p -vcodec libx264 -v 0 #{outFilePath}</parameterString>
      <winParameterString> -i #{inFilePath} -s #{width}x#{height} -pix_fmt yuv420p -vcodec libx264 -v 0 #{outFilePath}</winParameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command name="ffmpeg-toogg" enabled="true">
      <commandLine>ffmpeg</commandLine>
      <parameterString> -i #{inFilePath} -s #{width}x#{height} -acodec libvorbis -v 0 #{outFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command name="ffmpeg-toavi" enabled="true">
      <commandLine>ffmpeg</commandLine>
      <parameterString> -i #{inFilePath} -s #{width}x#{height} -q:v 0 -c:v mpeg4 -c:a ac3 #{outFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg.
      </installationDirective>
    </command>

  </extension>

</component>